import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'

Vue.use(Antd)

Vue.config.productionTip = false

Vue.directive('limit', (el, data) => {
  const str = el.innerText
  if (str.length > data.value) {
    el.innerText = str.substring(0, data.value) + '...'
  }
})

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
